package com.learn.sunday.auth.controller;

import com.alibaba.fastjson.JSONObject;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "tool/v1")
public class ToolController {


    @RequestMapping(value = "timestamp")
    public String getTimestatemap() {
        JSONObject json = new JSONObject();
        long time = System.currentTimeMillis();
        json.put("timestampMills",time);
        json.put("timestamp",time/1000);
        return json.toJSONString();
    }
}
